<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>router-link</title>
</head>
<body>

  <div id="app">
    <h1>Hello App!</h1>
    <p>
      <!-- 默认会渲染成一个<a>标签来定义导航链接，且会自动设置class属性值为.router-link-active -->
      <router-link to="/foo">Go to Foo</router-link>
      <router-link to="/bar">Go to Bar</router-link>
    </p>

    <!-- 路由出口 -->
    <!-- 路由匹配到的组件将渲染在这里 -->
    <router-view></router-view>
  </div>
</body>
</html>